package com.zjf.carpark.service.impl;


import com.zjf.carpark.dao.MenuMapper;
import com.zjf.carpark.entities.Menu;
import com.zjf.carpark.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: 张建飞
 * @createDate: 2019/12/7
 * @version: 1.0
 */
@Service
public class MenuServiceImpl extends BaseServiceImpl<Menu> implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> selectMenusByRoleId(int roleId) {
        return menuMapper.selectMenusByRoleId(roleId);
    }
}
